﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003B7 RID: 951
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DestroyItemCsReq : IMessage<DestroyItemCsReq>, IMessage, IEquatable<DestroyItemCsReq>, IDeepCloneable<DestroyItemCsReq>, IBufferMessage
	{
		// Token: 0x17000C2F RID: 3119
		// (get) Token: 0x06002A88 RID: 10888 RVA: 0x0007567D File Offset: 0x0007387D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DestroyItemCsReq> Parser
		{
			get
			{
				return DestroyItemCsReq._parser;
			}
		}

		// Token: 0x17000C30 RID: 3120
		// (get) Token: 0x06002A89 RID: 10889 RVA: 0x00075684 File Offset: 0x00073884
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DestroyItemCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000C31 RID: 3121
		// (get) Token: 0x06002A8A RID: 10890 RVA: 0x00075696 File Offset: 0x00073896
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DestroyItemCsReq.Descriptor;
			}
		}

		// Token: 0x06002A8B RID: 10891 RVA: 0x0007569D File Offset: 0x0007389D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DestroyItemCsReq()
		{
		}

		// Token: 0x06002A8C RID: 10892 RVA: 0x000756A5 File Offset: 0x000738A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DestroyItemCsReq(DestroyItemCsReq other) : this()
		{
			this.itemCount_ = other.itemCount_;
			this.itemId_ = other.itemId_;
			this.curItemCount_ = other.curItemCount_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002A8D RID: 10893 RVA: 0x000756E2 File Offset: 0x000738E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DestroyItemCsReq Clone()
		{
			return new DestroyItemCsReq(this);
		}

		// Token: 0x17000C32 RID: 3122
		// (get) Token: 0x06002A8E RID: 10894 RVA: 0x000756EA File Offset: 0x000738EA
		// (set) Token: 0x06002A8F RID: 10895 RVA: 0x000756F2 File Offset: 0x000738F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemCount
		{
			get
			{
				return this.itemCount_;
			}
			set
			{
				this.itemCount_ = value;
			}
		}

		// Token: 0x17000C33 RID: 3123
		// (get) Token: 0x06002A90 RID: 10896 RVA: 0x000756FB File Offset: 0x000738FB
		// (set) Token: 0x06002A91 RID: 10897 RVA: 0x00075703 File Offset: 0x00073903
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x17000C34 RID: 3124
		// (get) Token: 0x06002A92 RID: 10898 RVA: 0x0007570C File Offset: 0x0007390C
		// (set) Token: 0x06002A93 RID: 10899 RVA: 0x00075714 File Offset: 0x00073914
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurItemCount
		{
			get
			{
				return this.curItemCount_;
			}
			set
			{
				this.curItemCount_ = value;
			}
		}

		// Token: 0x06002A94 RID: 10900 RVA: 0x0007571D File Offset: 0x0007391D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DestroyItemCsReq);
		}

		// Token: 0x06002A95 RID: 10901 RVA: 0x0007572C File Offset: 0x0007392C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DestroyItemCsReq other)
		{
			return other != null && (other == this || (this.ItemCount == other.ItemCount && this.ItemId == other.ItemId && this.CurItemCount == other.CurItemCount && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002A96 RID: 10902 RVA: 0x00075788 File Offset: 0x00073988
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ItemCount != 0U)
			{
				num ^= this.ItemCount.GetHashCode();
			}
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this.CurItemCount != 0U)
			{
				num ^= this.CurItemCount.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002A97 RID: 10903 RVA: 0x000757F9 File Offset: 0x000739F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002A98 RID: 10904 RVA: 0x00075801 File Offset: 0x00073A01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002A99 RID: 10905 RVA: 0x0007580C File Offset: 0x00073A0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.ItemId);
			}
			if (this.CurItemCount != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.CurItemCount);
			}
			if (this.ItemCount != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.ItemCount);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002A9A RID: 10906 RVA: 0x00075884 File Offset: 0x00073A84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ItemCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemCount);
			}
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this.CurItemCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurItemCount);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002A9B RID: 10907 RVA: 0x000758F4 File Offset: 0x00073AF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DestroyItemCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ItemCount != 0U)
			{
				this.ItemCount = other.ItemCount;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			if (other.CurItemCount != 0U)
			{
				this.CurItemCount = other.CurItemCount;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002A9C RID: 10908 RVA: 0x00075958 File Offset: 0x00073B58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002A9D RID: 10909 RVA: 0x00075964 File Offset: 0x00073B64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 72U)
					{
						if (num != 96U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ItemCount = input.ReadUInt32();
						}
					}
					else
					{
						this.CurItemCount = input.ReadUInt32();
					}
				}
				else
				{
					this.ItemId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040010C9 RID: 4297
		private static readonly MessageParser<DestroyItemCsReq> _parser = new MessageParser<DestroyItemCsReq>(() => new DestroyItemCsReq());

		// Token: 0x040010CA RID: 4298
		private UnknownFieldSet _unknownFields;

		// Token: 0x040010CB RID: 4299
		public const int ItemCountFieldNumber = 12;

		// Token: 0x040010CC RID: 4300
		private uint itemCount_;

		// Token: 0x040010CD RID: 4301
		public const int ItemIdFieldNumber = 3;

		// Token: 0x040010CE RID: 4302
		private uint itemId_;

		// Token: 0x040010CF RID: 4303
		public const int CurItemCountFieldNumber = 9;

		// Token: 0x040010D0 RID: 4304
		private uint curItemCount_;
	}
}
